package router

import (
	"github.com/gin-gonic/gin"
	"web_end/api"
)

func InitTaskRouter(router *gin.RouterGroup) {
	taskGroup := router.Group("task")
	{
		taskGroup.POST("/create", api.CreateTask)
		taskGroup.GET("/item/:id", api.GetTaskById)
		taskGroup.GET("/list/:id", api.GetTaskListByIterationId)
		taskGroup.PUT("/item", api.UpdateTask)
		taskGroup.DELETE("/item", api.DeleteTask)
	}
}
